package cn.kgc.springday04.service.impl;

import cn.kgc.springday04.dao.UserDao;
import cn.kgc.springday04.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author 课工场
 * @date 2023/10/9
 * @description
 */
@Service
public class UserServiceImpl implements UserService {

    @Resource
    private UserDao userDao;

    @Override
    public boolean delete(Integer id) {

        Integer line = userDao.delete(id);
        return line == 1;
    }
}
